﻿using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.Security;
using System.Collections.Generic;
using System.Xml;
using System.Globalization;

namespace BAS.Dovas.WebControls
{

    public class DovasFieldDateTimeSec : SPFieldDateTime
    {

        #region default contructors

        public DovasFieldDateTimeSec(SPFieldCollection fields, string fieldName)
            : base(fields, fieldName)
        {
        }

        public DovasFieldDateTimeSec(SPFieldCollection fields, string typeName, string displayName)
            : base(fields, typeName, displayName)
        {
        }
        #endregion


        //public override void Update()
        //{
        //    base.Update();
        //}


        public override BaseFieldControl FieldRenderingControl
        {
            get
            {
                BaseFieldControl control = new DateTimeSecFieldControl();
                control.FieldName = base.InternalName;
                return control;
            }
        }
    }
}